package com.ms.p2p.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ms.p2p.entity.account.AccountRecharge;
import com.ms.p2p.provider.MemberAccountRechargeProvider;
import org.springframework.stereotype.Service;

/**
 * Created by daimajia on 2015/4/22.
 */
@Service
public class MemberAccountRechargeService {
    @Reference
    MemberAccountRechargeProvider memberAccountRechargeProvider;

    public void insert(AccountRecharge recharge){
        memberAccountRechargeProvider.insert(recharge);
    }
    public  AccountRecharge findByTrano(String requestId,int status){
       return  memberAccountRechargeProvider.findByTrano(requestId,status);
    }
    public  void onlineRecharge(String ip,AccountRecharge recharge,String name){
          memberAccountRechargeProvider.onlineRecharge(ip ,recharge,name);
    }


}
